<%@ page import="com.jfinal.plugin.activerecord.Db" %>
<%@ page import="cn.szzsi.model.Member" %>
<%@ page import="com.jfinal.kit.StrKit" %>
<%@ page import="org.apache.commons.lang3.StringUtils" %>
<%@ page import="java.util.List" %>
<%@ page import="com.jfinal.kit.JsonKit" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: weimin28
  Date: 2017/1/2
  Time: 下午4:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String id = request.getParameter("id");
    if(StrKit.notBlank(id)){
        List<Member> list = new ArrayList<Member>();
        String pids = Db.queryStr("select pids from sys_member where id = '"+id+"'");
        if(!pids.equals("0")){

            String[] ss = pids.split(",");
            for(String s:ss){
                list.add(Member.dao.findById(s));
            }

            out.print(JsonKit.toJson(list));
        }else{
            out.print("");
        }
        out.flush();
    }else{
        out.print("");
        out.flush();
    }
%>
